﻿namespace AvaloniaApplication1.ViewModels;

public class ViewModelLocator
{
    private readonly static ApplicationViewModel  _applicationViewModel = new();
    private readonly static SettingsViewModel _settingsViewModel = new();

    #region Public Properties

    /// <summary>
    /// Singleton instance of the locator
    /// </summary>
    public static ViewModelLocator Instance { get; private set; } = new ViewModelLocator();

    /// <summary>
    /// The application view model
    /// </summary>
    public ApplicationViewModel ApplicationViewModel => _applicationViewModel;

    /// <summary>
    /// The settings view model
    /// </summary>
    public SettingsViewModel SettingsViewModel => _settingsViewModel;

    #endregion
}
